package com.gxa.ssm251.controller;

import com.gxa.ssm251.util.ResultJson;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiImplicitParam;
import io.swagger.annotations.ApiImplicitParams;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("/coupon")
@Api(value = "优惠卷管理模块")
public class CouponController {

    @PostMapping("/selectByPage")
    @ApiImplicitParams(
            @ApiImplicitParam(name = "页数",readOnly = true,dataType ="string",paramType = "param")
    )
    public ResultJson selectByPage(@RequestParam(value = "page") Integer page, @RequestParam("size") Integer size,
                                   @RequestParam(value = "name",required = false) String name){
        ResultJson resultJson = new ResultJson();
        resultJson.setMsg("成功");
            return resultJson;
    }
}
